//
//  CartoonRecommendCell.m
//  Double
//
//  Created by 袁庆秋 on 15/5/23.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "CartoonRecommendCell.h"

@implementation CartoonRecommendCell

- (void)dealloc
{
    [_groundView release];
    [_showImage release];
    [_lastupLabel release];
    [_nameLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.groundView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width - 20, 180)];
        self.groundView.layer.cornerRadius = 10;
        self.groundView.clipsToBounds = YES;
        [self.contentView addSubview:self.groundView];
        [self.groundView release];
        
        self.showImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0,[UIScreen mainScreen].bounds.size.width - 20, 180)];
        [self.groundView addSubview:self.showImage];
        [self.showImage release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.showImage.frame.size.height - 20, [UIScreen mainScreen].bounds.size.width - 20, 20)];
        self.nameLabel.backgroundColor = [UIColor lightGrayColor];
        self.nameLabel.font = [UIFont systemFontOfSize:10];
        self.nameLabel.alpha = 0.7;
        [self.showImage addSubview:self.nameLabel];
        [self.nameLabel release];
        
        self.lastupLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width  / 2 + 50, self.showImage.frame.size.height - 20, [UIScreen mainScreen].bounds.size.width / 2 - 50, 20)];
        self.lastupLabel.font = [UIFont systemFontOfSize:10];
        self.lastupLabel.textAlignment = NSTextAlignmentCenter;
        self.lastupLabel.backgroundColor = [UIColor lightGrayColor];
        self.lastupLabel.alpha = 0.7;
        [self.showImage addSubview:self.lastupLabel];
        
        
    }
    return self;
}

- (void)awakeFromNib {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
